package com.nbsaas.boot.ai.rest.convert;

import com.nbsaas.boot.ai.data.entity.AiSession;
import com.nbsaas.boot.ai.api.domain.response.AiSessionResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;

/**
 * AI对话会话-实体对象转化成响应对象
 */

public class AiSessionResponseConvert implements Converter<AiSessionResponse, AiSession> {

    @Override
    public AiSessionResponse convert(AiSession source) {
        AiSessionResponse result = new AiSessionResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

